import { createStore, applyMiddleware } from "redux"
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from "redux-thunk"
import reducer from "./reducer"

// createStore 第一个参数是reducer的参数
// 第二个参数是redux的一些配置
const store = createStore(reducer, composeWithDevTools(
    applyMiddleware(thunk)
));


export default store;